package com.kwq.designPattern.construct.bridge;

/**
 * @author kangwanqiang
 * @date 2021/2/5
 */
public class Circle extends Shape {
    private int x;
    private int y;
    private int radius;

    protected Circle(int x, int y, int radius, Color color) {
        super(color);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    public void draw() {
        System.out.print(
                "画圆。 x:" + this.x + "，y:" + this.y + "，半径r：" + this.radius);
        color.printColor();
    }
}
